home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
T-TPUG Old Monthly Disks
/
(c)tj.d64
/
golf doc.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
4KB
|
120 lines
5 REM LOADER AND DOC FOR GOLF SYSTEM
7 REM AL JOHNSON--12302 COLERAINE CT-RESTON, VA 22091
10 DN$=""
15 PR$(1)="COURSE UPDATE":PR$(2)="GOLF HANDICAP"
33 POKE53281,15:POKE53280,12
35 PRINT"[147]";TAB(14);"GOLF SYSTEM"
40 PRINT"";TAB(18);"BY[151]"
50 PRINTTAB(14);"AL JOHNSON"
60 PRINTTAB(16);"[169][163][163][163][163][163][163][223]"
70 PRINTTAB(16);" "
80 PRINTTAB(16);" [146][144][215] "
90 PRINTTAB(16);" "
100 PRINTTAB(16);" [146][144]# 1 ";"[169][163][223]"
110 PRINTTAB(16);" ";" "
120 PRINTTAB(16);" ";"[146][223] [146][169]"
140 PRINTTAB(16);"[223] [146][169]"
150 PRINTTAB(13);"[169] [223]"
160 PRINTTAB(13);"[223] [146][169]"
170 FORX=1TO1500:NEXTX
200 PRINT"[147]";TAB(13);"GOLF SYSTEM [150]SCRN 1"
210 PRINT"[151] THESE PROGRAMS WERE IN WORKING ORDER"
220 PRINT" WHEN PLACED IN THE PUBLIC DOMAIN. IF"
230 PRINT" YOU HAVE PROBLEMS, YOU MAY HAVE"
240 PRINT"RECEIVED A BAD COPY FROM SOMEONE."
250 PRINT"IF YOU LIKE THE PROGRAMS OR HAVE ANY"
260 PRINT"SUGGESTIONS, LET ME KNOW. IT IS"
270 PRINT"INTERESTING TO SEE WHERE THESE THINGS"
280 PRINT"GET TO."
290 PRINT"";TAB(13);"AL JOHNSON"
300 PRINTTAB(13);"12302 COLERAINE CT."
310 PRINTTAB(13);"RESTON, VA 22091"
320 GOSUB9000
330 PRINT"[147]";TAB(13);"GOLF SYSTEM [150]SCRN 2[151]"
340 PRINT"THE GOLF SYSTEM CONSISTS OF TWO"
350 PRINT"PROGRAMS WHICH ALLOW YOU TO ENTER"
360 PRINT"YOUR GOLF SCORES, CALCULATE YOUR"
370 PRINT"HANDICAP AND SEE ASSORTED STATISTICS."
380 PRINT"THIS PROGRAM IS NOT REQUIRED, BUT"
390 PRINT"CONTAINS DOCUMENTATION AND WILL LOAD"
400 PRINT"AND RUN THE OTHER PROGRAMS."
410 PRINT"THE PROGRAMS ARE:"
420 PRINT"COURSE UPDATE: ESTABLISH PARS,"
430 PRINT"RATING, ETC."
440 PRINT"GOLF HANDICAP: ENTER ROUNDS, CALC"
450 PRINT"HANDICAP"
460 GOSUB9200
500 PRINT"[147]";TAB(18);"MENU"
510 PRINT" LOAD";TAB(32);"DOC"
520 PRINT"[151]";TAB(7);"1";TAB(14);"COURSE UPDATE";TAB(33);"A"
530 PRINT"[151]";TAB(7);"2";TAB(14);"GOLF HANDICAP";TAB(33);"B"
535 PRINT"";OM$;"[146][151]":OM$=""
540 GET K$:IF K$="" THEN 540
550 IF K$<>"1"ANDK$<>"2"ANDK$<>"A"ANDK$<>"B"THENOM$="BAD CHOICE":GOTO500
560 K=VAL(K$):IFK=0THEN 800
600 PRINT"[147]":PRINT"NEW"
610 PRINT"LOAD"CHR$(34)"0:"PR$(K)CHR$(34)",8"
620 PRINT"RUN":PRINT"[145][145][145][145][145][145][145][145][145][145][145][145][145]"
630 FORX=631 TO 634:POKEX,13:NEXTX
640 POKE198,4:END
800 IF K$="A"THENGOSUB1000:GOTO500
810 IF K$="B"THENGOSUB2000:GOTO500
820 OM$="BAD CHOICE":GOTO500
1000 PRINT"[147]";TAB(14);"COURSE UPDATE [150]SCRN 1"
1010 PRINT"[151]THIS PROGRAM IS USED TO DEFINE THE"
1020 PRINT"COURSES PLAYED. A COURSE MUST BE"
1030 PRINT"ENTERED WITH THIS PROGRAM PRIOR TO"
1040 PRINT"ENTERING ANY ROUNDS."
1050 PRINT"TAKE THE COURSE SCORECARD AND ENTER"
1060 PRINT"THE INFORMATION AS PROMPTED BY THE ?[151]."
1070 PRINT"NOTE THAT IN MANY CASES RETURN IS NOT"
1080 PRINT"REQUIRED. YOU MUST ENTER TOTAL PAR"
1090 PRINT"FOR THE COURSE SO IT CAN BE USED AS"
1100 PRINT"A CROSS CHECK."
1110 PRINT"IF YOU MAKE A MISTAKE DURING DATA"
1120 PRINT"ENTRY, USE F1[146] TO DELETE. THE DEL KEY"
1130 PRINT"WON'T WORK."
1140 GOSUB9000
1200 PRINT"[147]";TAB(14);"COURSE UPDATE [150]SCRN 2"
1210 PRINT"[151]IF YOU NEED TO MODIFY AN ENTRY, A"
1220 PRINT"SEPARATE MENU LINE WILL APPEAR. MAKE"
1230 PRINT"YOUR CHANGES, THEN ENTER 'Q' TO"
1240 PRINT"RETURN TO THE NORMAL MODE."
1250 GOSUB9200:RETURN
2000 PRINT"[147]";TAB(14);"GOLF HANDICAP [150]SCRN 1"
2010 PRINT"[151]THIS PROGRAM ALLOWS YOU TO ENTER"
2020 PRINT"ROUNDS OF GOLF AND SEE STATISTICS ON"
2030 PRINT"THEM."
2040 PRINT"THE MENU WILL ALLOW YOU TO LOAD, SAVE"
2050 PRINT"AND BACKUP THE FILE. THESE OPTIONS"
2060 PRINT"SHOULD BE SELF EXPLANATORY. THERE"
2070 PRINT"ARE THREE OTHER OPTIONS TO USE."
2080 PRINT"ROUNDS[151] IS USED TO ENTER, REVIEW OR"
2090 PRINT"MODIFY ROUNDS PLAYED. YOU CAN ENTER"
2100 PRINT"SCORES AND THE NUMBER OF GREENS AND"
2110 PRINT"FAIRWAYS HIT IN REGULATION. IF YOU"
2120 PRINT"WISH, HIT RETURN TO DEFAULT TO 'N'"
2130 PRINT"IF YOU MODIFY A ROUND, A DIFFERENT"
2140 PRINT"MENU LINE WILL APPEAR. YOU WILL"
2150 PRINT"REMAIN IN THE CHANGE MODE UNTIL YOU"
2160 PRINT"ENTER 'Q'."
2170 GOSUB9000
2200 PRINT"[147]";TAB(14)"GOLF HANDICAP [150]SCRN 2"
2210 PRINT"[151]HANDICAP[151] - CALCULATES AND DISPLAYS"
2220 PRINT"YOUR HANDICAP USING (I THINK) USGA"
2230 PRINT"METHODS. HANDICAPS CAN BE DONE FOR"
2240 PRINT"ALL COURSES OR ONE IN PARTICULAR."
2250 PRINT"FIVE ROUNDS MUST BE PLAYED TO"
2260 PRINT"ESTABLISH A HANDICAP."
2270 PRINT"STATISTICS[151] - SHOWS AVERAGE NUMBER OF"
2280 PRINT"STROKES, GREENS HIT AND PUTTS AT THE"
2290 PRINT"VARIOUS COURSES PLAYED."
2300 GOSUB9200:RETURN
8999 PRINT"[147]":END
9000 PRINT"";DN$;"MORE-PRESS A KEY[151]"
9010 GETK$:IFK$=""THEN9010
9020 RETURN
9200 PRINT"";DN$;"END-PRESS A KEY[151]"
9210 GETK$:IFK$=""THEN9210
9220 RETURN